package com.liang.exam.mapper;


import com.liang.exam.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminMapper {
    void deleteTeacher(int teacherId);

    void resetPassword(int teacherId);

    void addTeacher(String account, String password ,String userName, String role);

    void updateTeacher(int teacherId, String teacherName, String role);

    List<Teacher> findTeacher(Teacher teacher);


    List<Teacher> selectAll();

    void updatePassword(String newPwd,Integer id);

    Teacher findTeacherById(Integer id);
}
